import os
import json

bind = '0.0.0.0:9000'
timeout = 120
workers = 5
loglevel = 'info'
errorlog = 'logs/error.log'
accesslog = 'logs/access.log'

if not os.path.isdir('logs'):
    os.mkdir('logs')

local = {k: v for k, v in locals().items() if not k.startswith('_') and isinstance(v, (str, int))}
print('-------------gunicorn config----------')
print(json.dumps(local))

